package com.one.web.User;

import com.one.web.BaseServlet;


import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 向叶
 * UserLoginServlet类
 * 用户的登录注册servlet
 */
public class UserLoginServlet extends BaseServlet {

    
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String m = getM(request);
        switch (m){
            case "login" : loginPage(request,response);//登录
            case "reg" : reg(request,response);//注册
            case "showCode" : showCode(request,response);//显示验证码
        }
    }

    private void showCode(HttpServletRequest request, HttpServletResponse response) {
    }

    private void reg(HttpServletRequest request, HttpServletResponse response) {
    }

    private void loginPage(HttpServletRequest request, HttpServletResponse response) {
    }
}
